package com.example.keeppwd2;

import android.os.Handler;
import android.os.Looper;
import android.os.Message;

public abstract class MyHandler extends Handler {
	public static final int MessType_Succe = 90001;
	public static final int MessType_Error = 90002;
	public MyHandler() {
	}
	public MyHandler(Looper L) {
		super(L);
	}

	@Override
	public void handleMessage(Message msg) {
		super.handleMessage(msg);
		if (msg != null) {
			switch (msg.what) {
			case MessType_Succe:
				OnSuccess();
				break;
			case MessType_Error:
				OnError();
				break;
			}
		}
		OnFinish();
	}

	public abstract void OnFinish();

	public abstract void OnSuccess();

	public abstract void OnError();
}
